<template>
  <div>
    用户信息<button @click="outUser">退出登录</button>
    <div>{{ userinfo }}</div>
  </div>
</template>
<script>
export default {
  props: ["userinfo"],
  methods: {
    outUser() {
      localStorage.clear();
      this.$emit("changeisUserLogin", false);
    },
  },
};
</script>
